<?php

namespace App\Admin\Actions\Grid\Tools;

use App\Admin\Forms\UserListImportForm;
use Dcat\Admin\Grid\Tools\AbstractTool;
use Dcat\Admin\Widgets\Modal;

class UserListImportAction extends AbstractTool
{
    public function __construct()
    {
        parent::__construct();
        $this->title = '导入医生';
    }

    /**
     * 渲染模态框.
     *
     * @return Modal
     */
    public function render(): Modal
    {
        return Modal::make()
            ->lg()
            ->body(new UserListImportForm())
            ->button('<button class="btn btn-primary filter-btn-JQN8l59a btn-outline">
        <i class="feather icon-plus"></i><span class="d-none d-sm-inline">&nbsp;&nbsp;' . $this->title . '</span>
        <span class="filter-count"></span>
    </button>');
    }
}
